home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso / commercial / inovatronics / candodemo / helpfiles / error management  < prev    next >
Text File  |  1994-11-17  |  2KB  |  98 lines

  1. C- DoOnError            |doonerror|
  2. V- ErrorCode            |errorcode|
  3. V- ErrorLineNumber        |errorlinenumber|
  4. V- ErrorObjectName        |errorobjectname|
  5. V- ErrorObjectType        |errorobjecttype|
  6. V- Errors                |errors|
  7. V- ErrorScriptName        |errorscriptname|
  8. V- ErrorScriptType        |errorscripttype|
  9. V- ErrorSourceLine        |errorsourceline|
  10. V- ErrorText            |errortext|
  11. C- IfError                |iferror|
  12. [E]
  13.  
  14. |doonerror|
  15. WT DoOnError {RoutineName} [{Arg1} [,up to ten arguments]]
  16. PL Performs the specified Routine if an error
  17. PL occurs in the script being performed.  This
  18. PL will supersede the error handling done by
  19. PL CanDo.
  20. ED
  21.  
  22. |errorcode|
  23. WT {Integer}=ErrorCode
  24. PL Returns the Error Number associated with
  25. PL an error.  See the manual for a full
  26. PL description of this system variable.
  27. PL
  28. PT SEE ALSO: 
  29. BS ErrorText
  30. PT .
  31. ED
  32.  
  33. |errorlinenumber|
  34. WT {Integer}=ErrorLineNumber
  35. PL The line number in the script which
  36. PL caused an error.
  37. ED
  38.  
  39. |errorobjectname|
  40. WT {String}=ErrorObjectName
  41. PL Returns the name of the object which had
  42. PL the error.
  43. ED
  44.  
  45. |errorobjecttype|
  46. WT {String}=ErrorObjectType
  47. PL Returns the type of object in which the
  48. PL error occured.
  49. ED
  50.  
  51. |errors|
  52. WT {Logical}=Errors
  53. PT Returns 
  54. BS True
  55. PL  when script is executing after
  56. PL an error occured.
  57. ED
  58.  
  59. |errorscriptname|
  60. WT {String}=ErrorScriptName
  61. PL Returns the label for the script which had
  62. PL an error (ie. the name of the routine)
  63. ED
  64.  
  65. |errorscripttype|
  66. WT {String}=ErrorScriptType
  67. PL Returns the script type where an error
  68. PL occurred.
  69. ED
  70.  
  71. |errorsourceline|
  72. WT {String}=ErrorSourceLine
  73. PL Returns text of the script on which the
  74. PL error occurred.  This only works when
  75. PL running from the CanDo.Library not when
  76. PL run from DeckBrowser.
  77. ED
  78.  
  79. |errortext|
  80. WT {String}=ErrorText
  81. PL Returns the error message for the error
  82. PL that occurred.
  83. PL
  84. PT SEE ALSO: 
  85. BS ErrorCode
  86. PT .
  87. ED
  88.  
  89. |iferror|
  90. WT IfError
  91. PL Used to detect an error following
  92. PL a scripting command.  If the previous
  93. PL command caused an error, the IfError
  94. PL commands will execute.
  95. ED
  96.  
  97.  
  98.